 <div class="latestNewsArea">
      <h1>LatestNews</h1><div class="latestnewsBox" id="marquee_txt"></div></div> 
<div class="mainWarpArea">
    <!-- Begin BannerArea -->
    
    <!-- End BannerArea -->
    <!-- Begin latestnewsBox -->
     
    <!-- End latestnewsBox -->
    <!-- Begin contentwarp -->
    <div class="contentwarp">
      <!-- Begin contentwarpLeft -->
      <div class="contentwarpLeft">
      <div class="mainContentWarpLeft">
      	<?php 
			$sql = "SELECT url, stored_image_name FROM manage_images where id = '2'";
			$images = mysql_fetch_array(mysql_query($sql));	
		?>
        <!-- Begin educationCentreBox -->
        <div class="educationCentreBox">
        <a href="<?php echo $images['url']; ?>">
        	<img src="uploads/<?php echo $images['stored_image_name']; ?>" width="211" height="133" alt="" /></a>
          <h1>Education Centre New!</h1>
          <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. </p>
          <p><a href="#">Online from Open Universities</a></p>
          <p><span> <a href="#" style="float:right;">reamore  »</a></span></p>
          <hr style="border:1px dashed #E4E4E4;"/>
          <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. </p>
          <p><a href="#">Online from Open Universities</a></p>
          <p><span> <a href="#" style="float:right;">reamore  »</a></span></p>
        </div>
        <!-- End educationCentreBox -->
        <!-- Begin LeftBannerAds -->
        <?php 
			$sql = "SELECT url, stored_image_name FROM manage_images where id = '3'";
			$images = mysql_fetch_array(mysql_query($sql));	
		?>        
        <div class="LeftBannerAds">
        	<a href="<?php echo $images['url']; ?>">
        		<img src="uploads/<?php echo $images['stored_image_name']; ?>" width="215" height="259" alt="" />
        	</a>
        </div>
        <!-- End LeftBannerAds -->
      </div>
      <div class="mainContentWarpMiddle">
      <?php
		$sql = "SELECT a.id,section_name,content FROM ".$base_obj->SECTION." a INNER JOIN ".$base_obj->PAGE." b 
				ON(a.page_name = b.id AND b.active_status = '1') 
				WHERE section_name = 'Welcome to Studysage'";
		
		$res = $base_obj->exec_query($sql);
		$data = $base_obj->fetch_row($res);
		?>
                 
        <h1><?php echo $data['section_name']?></h1>
        <p> <?php echo $data['content']?></p>
        <p><span> <a href="index.php?page=sub_page&sec_id=<?php echo $data['id'];?>" style="float:right;">reamore  »</a></span></p>
        <hr style="border:1px dashed #E4E4E4;" />
         <?php
		$sql = "SELECT a.id, section_name,content FROM ".$base_obj->SECTION." a 
				INNER JOIN ".$base_obj->PAGE." b 
				ON(a.page_name = b.id AND b.active_status = '1') 
				WHERE section_name != 'Welcome to Studysage' AND a.active_status = '1'";
		
		$res = $base_obj->exec_query($sql);
		$data = $base_obj->fetch_row_all($res);
		for($i=0;$i<count($data);$i++) {
			
			if($i==0)
			
			
			
	  ?>
          
          <h1><?php echo $data[$i]['section_name']?></h1>
          
          <p><?php echo substr(strip_tags(stripslashes($data[$i]['content']),"<img>"),0,150)."...";?></p>
          <p><span> <a href="index.php?page=sub_page&sec_id=<?php echo $data[$i]['id'];?>" style="float:right;">read more  »</a> </span></p> <hr style="border:1px dashed #E4E4E4;" />
	  <?php } ?>
      
        </div>
      
      <div class="mainContentWarpRight">
        <!-- Begin VideoBox -->
        <div class="VideoBox">
        <?php 
        $qry = "select * from video WHERE id = '1'";
		$res = $base_obj->exec_query($qry);
		$data = $base_obj->fetch_row($res);
	   	echo $data['url']; 
	   ?>        
        </div>
        <!-- End VideoBox -->
        <!-- Begin RightContentWarp -->
        <div class="RightContentWarp">
          <h1>Books</h1>
          <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy.</p>
          <form action="index.php?page=books&view=result" method="post" onsubmit="return validate();" autocomplete="off">
          <input name="search_query" id="search_query" type="text"  class="RightContentWarpInput" onblur="if (this.value == '') {this.value = 'Enter Title,Author Name ,ISBN';}" onfocus="if (this.value == 'Enter Title,Author Name ,ISBN') {this.value = '';}" value="Enter Title,Author Name ,ISBN"  />
          <input name="" type="radio" value="" checked="checked"  class="RightContentWarpRadio"/>
          <div class="RightContentWarpRadioTxt">Title</div>
          <input name="" type="radio" value="" class="RightContentWarpRadio" />
          <div class="RightContentWarpRadioTxt">Author</div>
          <input name="" type="radio" value="" class="RightContentWarpRadio" />
          <div class="RightContentWarpRadioTxt">ISBN</div>
          <div style="clear:both;"></div>
          <input name="" type="submit" value="Search" class="imgborder"/> </form>
        </div>
        <!-- End RightContentWarp -->
        <!-- Begin RightContentWarp -->
        <div class="RightContentWarp">
          <h1>Technology</h1>
          <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy.</p>
         <form name="techsearch" method="post" action="" onsubmit="return val_tech();" autocomplete="off">
          <input name="search_tech" id="search_tech" type="text"  class="RightContentWarpInput" onblur="if (this.value == '') {this.value = 'Enter Gadget,Make,Technology';}" onfocus="if (this.value == 'Enter Gadget,Make,Technology') {this.value = '';}" value="Enter Gadget,Make,Technology"  />
          <div style="clear:both;"></div>
          <input name="" type="submit" value="Search" class="imgborder"/></form>
        </div>
        <!-- End RightContentWarp -->
        <!-- Begin RightContentWarp -->
        <div class="RightContentWarp">
          <h1>Jobs</h1>
          <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy.</p>
           <form name="jobsearch" method="post" action="" onsubmit="return val_job();" autocomplete="off">
          <input id="search_job" name="search_job"  type="text"  class="RightContentWarpInput" onblur="if (this.value == '') {this.value = 'Enter Job,Title,Sector,Location';}" onfocus="if (this.value == 'Enter Job,Title,Sector,Location') {this.value = '';}" value="Enter Job,Title,Sector,Location"  />
          <select name="list_job" id="list_job" class="RightContentWarpSelect">
            <?php echo $base_obj->listJob(); ?>
          </select>
          <select name="list_area" id="list_area" class="RightContentWarpSelect">
           <?php echo $base_obj->listarea();  ?>
          </select>
          <div style="clear:both;"></div>
          <input name="" type="submit" value="Search" class="imgborder"/></form>
        </div>
        <!-- End RightContentWarp -->
      </div>
      
       
       
        
        <!-- End TapBoxs -->
        <!-- Begin leftadBox -->
      
      </div>
      <!-- End contentwarpLeft -->
      <!-- Begin contentwarpMiddle -->
      </div>
      <!-- End contentwarpMiddle -->
      <?php //include("includes/right_content.php");?>
        <div style="clear:both;"></div>
    </div>
  </div>

<script language="JavaScript1.2">
<?php
$news_heading = $base_obj->getNewsHeadLines();

for($i=0;$i<count($news_heading);$i++) {
	if($i == (count($news_heading)-1)) {
		$headline .= '<a href="index.php?page=technology&view=news&news_id='.$news_heading[$i]['Id'].'">'.$news_heading[$i]['title']."</a>";
	}
	else {
		$headline .= '<a href="index.php?page=technology&view=news&news_id='.$news_heading[$i]['Id'].'">'.$news_heading[$i]['title']."</a>, ";	
	}
}
?>


//Specify the marquee's width (in pixels)
var marqueewidth="850px"
//Specify the marquee's height
var marqueeheight="20px"
//Specify the marquee's marquee speed (larger is faster 1-10)
var marqueespeed=2
//configure background color:
var marqueebgcolor=""
//Pause marquee onMousever (0=no. 1=yes)?
var pauseit=1

var scroll_text;
//Specify the marquee's content (don't delete <nobr> tag)
//Keep all content on ONE line, and backslash any single quotations (ie: that\'s great):

var marqueecontent='<nobr><?php echo $headline;?></a>  </nobr>'


////NO NEED TO EDIT BELOW THIS LINE////////////
marqueespeed=(document.all)? marqueespeed : Math.max(1, marqueespeed-1) //slow speed down by 1 for NS
var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var iedom=document.all||document.getElementById
if (iedom)
//document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+marqueecontent+'</span>')
scroll_text = '<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+marqueecontent+'</span>';

var actualwidth=''
var cross_marquee, ns_marquee

function populate(){
	if (iedom){
	cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee
	cross_marquee.style.left=parseInt(marqueewidth)+8+"px"
	cross_marquee.innerHTML=marqueecontent
	actualwidth=document.all? temp.offsetWidth : document.getElementById("temp").offsetWidth
	}
	else if (document.layers){
	ns_marquee=document.ns_marquee.document.ns_marquee2
	ns_marquee.left=parseInt(marqueewidth)+8
	ns_marquee.document.write(marqueecontent)
	ns_marquee.document.close()
	actualwidth=ns_marquee.document.width
	}
	lefttime=setInterval("scrollmarquee()",20)
}
window.onload=populate

function scrollmarquee(){
if (iedom){
if (parseInt(cross_marquee.style.left)>(actualwidth*(-1)+8))
cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+"px"
else
cross_marquee.style.left=parseInt(marqueewidth)+8+"px"

}
else if (document.layers){
if (ns_marquee.left>(actualwidth*(-1)+8))
ns_marquee.left-=copyspeed
else
ns_marquee.left=parseInt(marqueewidth)+8
}
}

if (iedom||document.layers){
with (document){

if (iedom){
scroll_text += '<div style="position:relative;width:'+marqueewidth+';height:'+marqueeheight+';overflow:hidden">';
scroll_text += '<div style="position:absolute;width:'+marqueewidth+';height:'+marqueeheight+';background-color:'+marqueebgcolor+'" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">';
scroll_text += '<div id="iemarquee" style="position:absolute;left:0px;top:-3px"></div>';
scroll_text += '</div></div>';
}
else if (document.layers){
scroll_text += '<ilayer width='+marqueewidth+' height='+marqueeheight+' name="ns_marquee" bgColor='+marqueebgcolor+'>';
scroll_text += '<layer name="ns_marquee2" left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"></layer>';
scroll_text += '</ilayer>';
}

}
document.getElementById('marquee_txt').innerHTML = scroll_text;
}
</script> 
<script language="javascript">
function val_tech()
{

var search_tech = $('#search_tech').val();	
if(search_tech == "Enter Gadget,Make,Technology") {
document.getElementById("search_tech").style.border="solid #F00 2px";
document.getElementById('search_tech').focus();
return false;
}
else
{
	
	document.techsearch.action = "index.php?page=technology&mode=view&srch_id="+search_tech;
	document.techsearch.method="post";
	document.techsearch.submit();

}
}

function val_job()
{
	
var search_job = $('#search_job').val();
var list_area = $('#list_area').val();
var list_job = $('#list_job').val();
if(search_job == "Enter Job,Title,Sector,Location") {
document.getElementById("search_job").style.border="solid #F00 2px";
document.getElementById('search_job').focus();
return false;
}
else
{
	
	document.jobsearch.action = "index.php?page=view_job&s_id="+search_job+"&area_id="+list_area+"&list_job="+list_job;
	document.jobsearch.method="post";
	document.jobsearch.submit();

}
}

function validate()
{
	
	
var search_query = $('#search_query').val();

if(search_query == "Enter Title,Author Name ,ISBN") {
document.getElementById("search_query").style.border="solid #F00 2px";
document.getElementById('search_query').focus();
return false;
}
	
}
</script>